<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS3 Animation 图像切换案例</title>
</head>
<style>
    body,html{
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .banner{
        width: 100%;
        height: 100%;
        background-image: url("http://p3.qhimg.com/bdm/0_0_100/t01fe93ee54ba6c2cbb.jpg");
        animation: banner 9s infinite alternate;
    }
    @keyframes banner {
        0%{
            background-image: url("http://p3.qhimg.com/bdm/0_0_100/t01fe93ee54ba6c2cbb.jpg");
        }
        50%{
            background-image: url("http://p6.qhimg.com/bdm/0_0_100/t01b499b02017ac021a.jpg");
        }
        100%{
            background-image: url("http://p3.qhimg.com/bdm/0_0_100/t01fe93ee54ba6c2cbb.jpg");
        }
    }

</style>
<body>
    <div class="banner"></div>
</body>
</html>